package org.example;

import org.example.service.StudentService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SecondeApp {
    public static void main(String[] args) {
        ApplicationContext cxt=new ClassPathXmlApplicationContext("spring.xml");
        StudentService service= (StudentService) cxt.getBean("studentService");
        service.getDao();
    }
}